package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VehicleOperationLogsMapper;
import com.ruoyi.system.domain.VehicleOperationLogs;
import com.ruoyi.system.service.IVehicleOperationLogsService;

/**
 * 车辆操作日志Service业务层处理
 * 
 * @author whut
 * @date 2024-11-21
 */
@Service
public class VehicleOperationLogsServiceImpl implements IVehicleOperationLogsService 
{
    @Autowired
    private VehicleOperationLogsMapper vehicleOperationLogsMapper;

    /**
     * 查询车辆操作日志
     * 
     * @param id 车辆操作日志主键
     * @return 车辆操作日志
     */
    @Override
    public VehicleOperationLogs selectVehicleOperationLogsById(Long id)
    {
        return vehicleOperationLogsMapper.selectVehicleOperationLogsById(id);
    }

    /**
     * 查询车辆操作日志列表
     * 
     * @param vehicleOperationLogs 车辆操作日志
     * @return 车辆操作日志
     */
    @Override
    @DataScope(deptAlias = "v")
    public List<VehicleOperationLogs> selectVehicleOperationLogsList(VehicleOperationLogs vehicleOperationLogs)
    {
        return vehicleOperationLogsMapper.selectVehicleOperationLogsList(vehicleOperationLogs);
    }

    /**
     * 新增车辆操作日志
     * 
     * @param vehicleOperationLogs 车辆操作日志
     * @return 结果
     */
    @Override
    public int insertVehicleOperationLogs(VehicleOperationLogs vehicleOperationLogs)
    {
        return vehicleOperationLogsMapper.insertVehicleOperationLogs(vehicleOperationLogs);
    }

    /**
     * 修改车辆操作日志
     * 
     * @param vehicleOperationLogs 车辆操作日志
     * @return 结果
     */
    @Override
    public int updateVehicleOperationLogs(VehicleOperationLogs vehicleOperationLogs)
    {
        return vehicleOperationLogsMapper.updateVehicleOperationLogs(vehicleOperationLogs);
    }

    /**
     * 批量删除车辆操作日志
     * 
     * @param ids 需要删除的车辆操作日志主键
     * @return 结果
     */
    @Override
    public int deleteVehicleOperationLogsByIds(Long[] ids)
    {
        return vehicleOperationLogsMapper.deleteVehicleOperationLogsByIds(ids);
    }

    /**
     * 删除车辆操作日志信息
     * 
     * @param id 车辆操作日志主键
     * @return 结果
     */
    @Override
    public int deleteVehicleOperationLogsById(Long id)
    {
        return vehicleOperationLogsMapper.deleteVehicleOperationLogsById(id);
    }
}
